

float calculatePrice(float parcelWeight){
	//easter egg for exciting people who try to ship parcels with negative weights
	if (parcelWeight < 0){
		printf("If you ship a parcel with a negative weight we will pay you!\n");
	}
	//returns price for parcels under 2.5 kg
	if (parcelWeight < 2.5){
		return (parcelWeight*3.5);
	}
	//returns price for parcels > 2.5 up to 5 kg
	if (parcelWeight <= 5){
		return (parcelWeight*2.85);
	}
	//returns price for all other parcels
	return (parcelWeight*2.45);
}

